package com.infoDiffusion.bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

//水文信息
@Entity
@Table(name = "hydrostat")
public class HydroStatBean {
	private Integer id;	//
	private String name;	//水文站名称	
	private String address;	//地址
	private Date refreshTime;	//更新时间
	private String waterLevel;	//水位
	private String warningWaterLevel;
	private String waterFlow;	//水流量
	private String notes;	//备注
	private UserBean userBean;	//作者id
	@Id
	@GeneratedValue
	public Integer getId() {	
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name="name")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column(name="address")
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	@Column(name="refresh_time")
	public Date getRefreshTime() {
		return refreshTime;
	}
	public void setRefreshTime(Date refreshTime) {
		this.refreshTime = refreshTime;
	}
	@Column(name="water_level")
	public String getWaterLevel() {
		return waterLevel;
	}
	public void setWaterLevel(String waterLevel) {
		this.waterLevel = waterLevel;
	}
	@Column(name="water_flow")
	public String getWaterFlow() {
		return waterFlow;
	}
	public void setWaterFlow(String waterFlow) {
		this.waterFlow = waterFlow;
	}
	@Column(name="notes")
	public String getNotes() {
		return notes;
	}
	public void setNotes(String notes) {
		this.notes = notes;
	}
	@Column(name="warning_water_level")
	public String getWarningWaterLevel() {
		return warningWaterLevel;
	}
	public void setWarningWaterLevel(String warningWaterLevel) {
		this.warningWaterLevel = warningWaterLevel;
	}
	@ManyToOne
	@JoinColumn(name="user_id")
	public UserBean getUserBean() {
		return userBean;
	}
	public void setUserBean(UserBean userBean) {
		this.userBean = userBean;
	}
	
	
	
	
	

}
